<script type="text/javascript" src="js/systemManage/resource/resourceList.js"></script>


<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'west',border:true,split:true," title="菜单树" style="width:150px; padding:5px;">
        <ul id="resource-tree" class="easyui-tree"></ul>
    </div>
    <div data-options="region:'center',border:false">
    	<!-- Begin of toolbar -->
        <div id="resource-toolbar">
        	<form id="resource-queryForm">
	            <div class="index-toolbar-button">
	                <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-add" onclick="systemManage.resource.resourceList.openAdd()" plain="true">添加</a>
	                <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-remove" onclick="systemManage.resource.resourceList.remove()" plain="true">删除</a>
	            	<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-back" onclick="systemManage.resource.resourceList.backParentMenu()" plain="true">上一层</a>
	            	
	            </div>
	            <div class="index-toolbar-search">
	            	<label>菜单名称：</label>
	                <input class="easyui-textbox" name="resourceName" style="width:150px"/>
	                
	                <label>链接路径：</label>
	                <input class="easyui-textbox" name="url" style="width:150px"/>
	                
	                <label>起始时间：</label><input name="startDate" class="easyui-datebox" style="width:120px"/>
	                
	                <label>结束时间：</label><input name="endDate" class="easyui-datebox" style="width:120px"/>
	                
	                <label>是否可用：</label> 
	                <select class="easyui-combobox" name="enabled" panelHeight="auto" style="width:100px">
	                	<option value="">所有</option>
	                    <option value="Y">可用</option>
	                    <option value="N">不可用</option>
	                </select>
	                
	                <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-search" onclick="systemManage.resource.resourceList.queryList()">开始查询</a>
	                <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-back" onclick="systemManage.resource.resourceList.reset()">重置</a>
	            </div>
            </form>
        </div>
        <!-- End of toolbar -->
        <table id="resource-datagrid" toolbar="#resource-toolbar"></table>
    </div>
</div>


<!-- 新增，修改对话框开始 -->
<div id="resource-dialog" class="easyui-dialog" data-options="closed:true,iconCls:'icon-save'" style="width:400px; padding:10px;">
   <form id="resourceForm" class="easyui-form" method="post">
			<div style="margin-bottom:20px">
				<input class="easyui-textbox" id="resourceName" name="resourceName" style="width:80%" data-options="label:'菜单名称<span class=requiredCls>*</span>:',required: true,validType:['notEmpty','length[0,20]']">
			</div>
			<div style="margin-bottom:20px">
				<input class="easyui-textbox" id="code" name="code" style="width:80%" data-options="label:'菜单编码<span class=requiredCls>*</span>:',required: true,validType:['notEmpty','length[0,50]']">
			</div>
			<div style="margin-bottom:20px">
				<input class="easyui-textbox" id="url" name="url" style="width:80%" data-options="label:'链接路径<span class=requiredCls>*</span>:',required: true,validType:['notEmpty','length[0,100]']">
			</div>
			<div style="margin-bottom:20px">
				<select id="parentId" name="parentId" class="easyui-combotree" style="width:80%"
				    data-options="label:'父菜单:'">
				</select>
			</div>
			<div style="margin-bottom:20px">
				<input class="easyui-textbox" id="sequence" name="sequence" style="width:80%" data-options="label:'序号<span class=requiredCls>*</span>:',required: true,validType:['notEmpty','positiveInteger','length[0,5]']">
			</div>
			<div style="margin-bottom:20px">
				<label class="textbox-label textbox-label-before">是否可用<span class=requiredCls>*</span>:</label>
				<span style="margin-right:10px;"><input class="easyui-radiobutton" name="enabled" value="Y" label="是" labelWidth="20" checked=true/></span>
				<span><input class="easyui-radiobutton" name="enabled" value="N" label="否" labelWidth="20"/></span>
			</div>
			<input type="hidden" name="id"/>
	</form>		
</div>
<!-- 新增，修改对话框结束 -->

<!-- 权限设置对话框开始 -->
<div id="bindPermission-dialog" class="easyui-dialog" data-options="closed:true,iconCls:'icon-save'" style="width:400px; padding:10px;">
   <form id="bindPermissionForm" class="easyui-form" method="post">
   		<select class="easyui-combobox"  id="permissionIdList" name="permissionIdList"  multiple="true" multiline="true" label="选择菜单下的权限:" labelPosition="top" style="width:100%;height:80px;">
   		</select>
   		<input type="hidden" id="resourceId" name="id"/>
   </form>
</div>   
<!-- 权限设置对话框结束 -->
   


